switchroot: Properly check for number of arguments
authorAdrian Perez <aperez@igalia.com>
Wed, 18 Apr 2012 18:13:43 +0000 (21:13 +0300)
committerColin Walters <walters@verbum.org>
Wed, 18 Apr 2012 19:20:46 +0000 (15:20 -0400)
commit99142ef417f4af82095fba95d02ad73cfd80a2c9
tree536d4176d11a89992075adb6458ce22c57df7533
parent99803babd984f300882ea5a63e18b335639ad1fb
switchroot: Properly check for number of arguments

The ostree-switch-root tool expects three arguments (argc=4): new root, OS
tree target, and init(8) binary to launch inside it. Also, the error message
when not enough arguments are passed now tells about the second argument
being the target OS tree.

Reviewed-by: Colin Walters <walters@verbum.org>
src/switchroot/ostree-switch-root.c